package map.android.baidu.carpool.response;

import com.baidu.lbs.net.http.response.ComNetResponse;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by zhangtongyu on 15/3/23.
 * main模块计费详情信息接口Response
 */
public class AccountResponse extends ComNetResponse implements Serializable{

    private static final long serialVersionUID = 3979332960102657528L;

    public AccountRoot data;
    private int errNo = 0;

    public class AccountRoot{

        public DistanceInfo distance;
        public ArrayList<FeeAndCarTypeItem> fee;
        public String cityCode;

        public class DistanceInfo implements Serializable{

            private static final long serialVersionUID = -6442563244781581734L;

            public String distance;
            public String duration;
            public String remark;
            public String total_price;
        }

        public class FeeAndCarTypeItem implements Serializable{
            private static final long serialVersionUID = 3769206551203787567L;
            public String name;
            public String desc;
            public String type;
            public String fee;
        }
    }

    @Override
    public boolean isBadResponse() {
        return false;
    }

    @Override
    public int getErrorNo() {
        return errNo;
    }

    @Override
    public String getErrorMsg() {
        return null;
    }
}
